package com.hk.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import com.hk.model.pojo.SysDictData;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface DictDataMapper extends BaseMapper<SysDictData> {

    Page<SysDictData> selectDictDataByPage(String dictName, String dictType, Integer status, String beginTime, String endTime);

    @Select("select * from sys_dict_data where dict_code = #{id}")
    SysDictData selectDictDataById(Long id);

    void updateDictDataById(SysDictData sysDictData);

    void deleteBatchCodes(Long[] ids);
}
